import request from '@/utils/request'

// 获取项目的当前订单状态配置
export function GetProjectOrderState(projectId) {
  return request({
    url: '/erp/api/project_order_state/get',
    method: 'get',
    params: {
      project_id: projectId
    }
  })
}

// 更新项目的当前订单状态
export function UpdateProjectOrderState(data) {
  return request({
    url: '/erp/api/project_order_state/update',
    method: 'post',
    data
  })
}

// 获取所有项目的订单状态配置
export function GetAllProjectOrderStates() {
  return request({
    url: '/erp/api/project_order_state/all',
    method: 'get'
  })
}
